<?php
/**
 * [PHPFOX_HEADER]
 * 
 * @copyright		[PHPFOX_COPYRIGHT]
 * @author  		Raymond Benc
 * @package 		Phpfox
 * @version 		$Id: view.html.php 3346 2011-10-24 15:20:05Z Raymond_Benc $
 */
defined('PHPFOX') or exit('NO DICE!');
?>
<div class="store_product">
    <div class="product_details">
        <div class="listing_item_title">
            <a href="#">{$aListing.title}</a>
        </div>
        <div class="user-info">
            <div class="user-image">
                {img user=$aListing suffix='_50_square' max_width='50' max_height='50'}
            </div>
            <div class="user-name">
                {$aListing|user:'':'':50}<p class="time-stamp">{$aListing.time_stamp|date:'marketplace.marketplace_view_time_stamp'}</p>
            </div>
            <div class="like_comment_bar">
                {if isset($aListing.store_link)}
                <a href="{$aListing.store_link}" target="_blank"><span class="down_load"></span></a>
                {/if}
                <span class="comment">{$aListing.total_comment}</span>
                <span class="map_link">
                    <a href="#" onclick="showListingStoreMap('{$aListing.listing_id}');return false;" class="js_feed_entry_location no_ajax_link">
                        <img alt="Show map" src="{param var='core.path'}module/marketplace/static/image/map-icon.png">
                    </a>
                    <div id="js_map_listing_{$aListing.listing_id}" class="map_store" style="display: none;">                    
                        <div class="beeperNub"></div>
                        <div id="js_map_listing_content_{$aListing.listing_id}" class="js_map_content">
                            <img style="margin: auto;" src="{param var='core.path'}theme/frontend/default/style/default/image/layout/loading.gif"/>
                        </div>
                     </div>
                </span>
                <span class="like">{$aListing.total_like}</span>
            </div>
            <div class="clear"></div>
        </div>
        <div class="store-image">
            {if !empty($aListing.image_path)}
                <div class="store_image_image">
                    {img server_id=$aListing.server_id title=$aListing.title path='marketplace.url_image' file=$aListing.image_path suffix='' max_width='426' max_height='800'}
                    {if Phpfox::isModule('share') && !isset($aFeed.no_share)}
                    <ul class="marketplace_share">{if $aFeed.privacy == '0'}
                            {module name='share.link' type='feed' display='menu' url=$aFeed.feed_link title=$aFeed.feed_title sharefeedid=$aFeed.item_id sharemodule=$aFeed.type_id}
                    {else}
                            {module name='share.link' type='feed' display='menu' url=$aFeed.feed_link title=$aFeed.feed_title}
                    {/if}
                    </ul>
                    {/if}  
                </div>
                {module name='marketplace.media.videodisplay' listing_id=$aListing.listing_id display_type='small'}
            {else}
                {module name='marketplace.media.videodisplay' listing_id=$aListing.listing_id display_type='large'}
            {/if}
            
        </div>
        <div class="store-action">
            <div class="buttons">
                <a href="#" onclick="return false;" class="sign">#{$aListing.listing_id}</a>
                <a href="#" onclick="return false;" class="dollar">
                    {if $aListing.price == '0.00'}
                        {phrase var='marketplace.free'}
                    {else}
                        {$aListing.currency_id|currency_symbol}{$aListing.price|number_format:2}
                    {/if}
                </a>
                <a href="#" onclick="tb_show('Order',$.ajaxBox('marketplace.store.order','id={$aListing.listing_id}'));return false;" class="oder">Oder</a>
            </div>
            <div class="listing_description">{$aListing.description|parse|split:70}</div>
        </div>
    </div>
</div>
